#ifndef PREPROCESS
#define PREPROCESS

#include "opencv2/opencv.hpp"
#include "plateJudge.h"

using namespace cv;

enum PLATESIZE{ LITTLE, MIDDLE, BIG };

int fPreprocessImage(Mat Pre_src_image, int src_image_length, Mat &dest_image, bool debug);
Mat fPreprocessImage2(const Mat &preSrcImage, Point tl, Size pLateRegionSize, bool debug);
int resizeAndCut(Mat &Pre_src_image, Mat &dImage, PLATESIZE levelTwo, bool debug);
int preprocessPlate(Plate &srcPlate, PLATESIZE ifResize);

#endif
